package de.klingbeil.hhc.client.view;

import com.google.gwt.user.client.ui.Widget;

import de.klingbeil.hhc.client.controller.ItemEditorController.ItemEditorView;
import de.klingbeil.hhc.client.controller.ItemEditorController.OnClickAddItemCallback;
import de.klingbeil.hhc.client.widget.ItemEditorWidget;

public class ItemEditorViewImpl implements ItemEditorView {

	private ItemEditorWidget itemEditorWidget;

	public ItemEditorViewImpl() {
		itemEditorWidget = new ItemEditorWidget();
	}

	@Override
	public Widget getWidget() {
		return itemEditorWidget;
	}

	@Override
	public void setOnClickAddItemCallback(OnClickAddItemCallback callback) {
		itemEditorWidget.setOnClickAddItemCallback(callback);
	}

}
